using UnityEngine;

namespace Game {
	public sealed class MiscWorldOptions : MonoBehaviour {
		public Transform SunDir;

		void Awake() {
			Shader.SetGlobalColor("_SunGlobalColor", Color.white);
		}

		private void LateUpdate() {
			Shader.SetGlobalVector("_SunDirection", SunDir.TransformDirection(Vector3.forward));
		}
	}
}
